import { defineStore } from "pinia";
import { reactive, ref } from "vue";
import {
  JudgeInfo,
  QuestionSubmitVO,
  QuestionVO,
  UserVO,
} from "../../generated";

export const useQuestion = defineStore(
  "question",
  () => {
    const questionId = ref(1);

    const submit = ref({
      code: "",
    } as QuestionSubmitVO);

    return { questionId, submit };
  },
  {
    persist: {
      enabled: true,
    },
  }
);
